package org.zbclan.bf2.rcon.common.client.event;

import com.google.gwt.event.shared.GwtEvent;

public class GPOSelectedEvent extends GwtEvent<GPOSelectedEventHandler> {

	public static Type<GPOSelectedEventHandler> TYPE = new Type<GPOSelectedEventHandler>();

	private String name;
	private String mode;

	public GPOSelectedEvent(String name, String mode) {
		this.name = name;
		this.mode = mode;
	}

	@Override
	protected void dispatch(GPOSelectedEventHandler handler) {
		handler.onGPOSelected(name, mode);
	}

	@Override
	public Type<GPOSelectedEventHandler> getAssociatedType() {
		return TYPE;
	}

	public String getName() {
		return name;
	}

	public String getMode() {
		return mode;
	}

}
